package com.xhblog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author pengyouhong
 * create 2022/5/17 18:11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "xh_blog.ms_comment")
public class Comment implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "content")
    private String content;

    @TableField(value = "create_date")
    private Long createDate;

    @TableField(value = "article_id")
    private Integer articleId;

    @TableField(value = "author_id")
    private Long authorId;

    @TableField(value = "parent_id")
    private Long parentId;

    @TableField(value = "to_uid")
    private Long toUid;

    @TableField(value = "level")
    private String level;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_CONTENT = "content";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_ARTICLE_ID = "article_id";

    public static final String COL_AUTHOR_ID = "author_id";

    public static final String COL_PARENT_ID = "parent_id";

    public static final String COL_TO_UID = "to_uid";

    public static final String COL_LEVEL = "level";
}